from datetime import datetime


class TokenType:
    Yun: int = 7


class Token:
    def load(self, data: dict):
        self.user = data["user"]
        self.platform_id = data["platform_id"]
        self.data = data["data"]
        return self

    def __init__(self):
        self.user: str = ""
        self.platform_id: int = 0
        self.data: str = ""

    def __str__(self):
        return f"Token({self.platform_id}, {self.user})"

    def __repr__(self):
        return self.__str__()
